<script>
export default {
  onLaunch: function () {
    console.log('App Launch')
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    console.log('App Hide')
  },
}
</script>

<style lang="scss">
page {
  background: #f7f8fa;
}
/*每个页面公共css */
view,
image {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.source-button {
  position: fixed;
  right: 0rpx;
  top: 70%;
  transform: translateY(-50%);
  width: 104rpx;
  height: 88rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rpx;
  border-top-width: 4rpx;
  border-bottom-width: 4rpx;
  border-left-width: 4rpx;
  border-top-left-radius: 24rpx;
  border-bottom-left-radius: 24rpx;
  background: linear-gradient(270deg, #44d4a8 0%, #30d1e6 100%);
  box-shadow: 0px 8rpx 16rpx 0px #38d3c340;
  z-index: 1000;

  .icon {
    width: 48rpx;
    height: 48rpx;
    flex-shrink: 0;
  }

  .arrow {
    height: 20rpx;
    width: 20rpx;
  }
}
.filter-box {
  position: absolute;
  width: 702rpx;
  height: fit-content;
  gap: 16rpx;
  border-radius: 16rpx;
  padding: 24rpx;
  background: #fff;
  top: 112rpx;
  left: 24rpx;
  z-index: 10;
  box-shadow: 0px 1px 5px #00000055;
  .header {
    display: flex;
    justify-content: space-between;

    .title {
      font-family: PingFang SC;
      font-weight: 500;
      font-style: Medium;
      font-size: 14px;
      line-height: 20px;
      letter-spacing: 0px;
      padding-left: 18rpx;
      position: relative;

      &::after {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6rpx;
        height: 24rpx;
        border-radius: 4px;
        content: '';
        background: linear-gradient(0deg, #44d4a8 0%, #30d1e6 100%);
      }
    }

    .icon {
      width: 28rpx;
      height: 28rpx;
    }

    .clean {
      display: flex;
      align-items: center;
      gap: 8rpx;
      font-family: PingFang SC;
      font-weight: 400;
      font-style: Regular;
      font-size: 12px;
      line-height: 18px;
      letter-spacing: 0px;
      color: #969799;
    }
  }

  .body {
    margin-top: 16rpx;
    display: flex;
    flex-wrap: wrap;
    gap: 16rpx;

    .item {
      width: fit-content;
      height: 56rpx;
      gap: 8rpx;
      padding: 0 16rpx;
      border-radius: 12rpx;
      font-family: PingFang SC;
      font-weight: 500;
      font-style: Medium;
      font-size: 24rpx;
      background-color: #f7f8fa;
      display: flex;
      align-items: center;
      gap: 8rpx;

      &.active {
        color: #13b7a4;
        background: #38d3c31a;
        border: 2rpx solid #38d3c3;
      }
    }
  }
}
</style>
